﻿using System;

using BizElements.BusinessLayer;

namespace BizElements.Web
{
    /// <summary>
    /// A value indicating the type of error encountered during parsing.
    /// </summary>
    [Serializable]
    public enum ParseError
    {
        /// <summary>
        /// Indicates that value has been succesfully parsed. No errors occured.
        /// </summary>
        AllOk,

        /// <summary>
        /// An error occured while trying to parse an integer.
        /// </summary>
        WrongIntegerFormat,

        /// <summary>
        /// An error occured while trying to parse a number.
        /// </summary>
        WrongNumberFormat,

        /// <summary>
        /// An error occured while trying to parse a DateTime value.
        /// </summary>
        WrongDateFormat
    }
}